package com.tanhua.manager.vo;

import com.tanhua.manager.exceptions.TanhuaException;
import lombok.Getter;

import java.util.Date;

@Getter
public class ErrorResult {

    private int errCode;
    private String errMessage;
    private Date date;

    public ErrorResult(TanhuaException e){
        this.errCode  = e.getStatusCode();
        this.errMessage = e.getMessage();
        this.date = new Date();
    }

}
